<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%@ page contentType="text/html; charset=UTF-8"%>
<%@ include file="/common/tag.jsp"%>
<html> 
<head>
<title>按区域统计</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">

<%@ include file="/common/common_css.jsp"%>
<%@ include file="/common/common_js.jsp"%>

<script type="text/javascript">
//查询方法
function query(){
	//根据查询条件进行统计，执行form提交
	document.businesslistForm.submit();
}
//药品信息导出
function export_(){
	//调用ajax Form提交
	jquerySubByFId('businesslist',ypxxExprot_callback,null,"json");
	
}
function ypxxExprot_callback(data){
	
	//在这里提示信息中有文件下载链接
	
	_alert(data);
	
}

var columns = [ [ /* {
	field : 'id',
	title : '',
	checkbox : true//显示一列复选框
},  */{
	field : 'bm',
	title : '流水号',
	width : 80
}, {
	field : 'mc',
	title : '通用名',
	width : 130
}, {
	field : 'cgl',
	title : '采购量',
	width : 80
}, {
	field : 'cgje',
	title : '采购金额',
	width : 100
} ] ];



/* datagrid */
$(function() {
	$('#yycgdmxlist').datagrid({
		title : '交易明细',
		striped : true,
		url : '${baseurl}/analyze/sumByYpxx_result.action',
		idField : 'bm',//唯一标记一条记录的列的key
		columns : columns,
		pagination : true,
		rownumbers : true,
		toolbar : toolbar,
		loadMsg : "",
		pageList : [ 15, 30, 50, 100 ],
		onClickRow : function(index, field, value) {
			$('#ypxxlist').datagrid('unselectRow', index);
		}
	});

})






</script>

</HEAD>
<BODY>
    <form id="businesslistForm" name="businesslistForm" method="post" action="${baseurl }/analyze/sumByYpxx.action">
			<TABLE  class="table_search">
				<TBODY>
					
					<TR>
					   <TD class="left">统计开始时间：</TD>
						<td >
						 <INPUT id="yybusinessQueryCustom.startDate"
							name="yybusinessQueryCustom.startDate" 
							 onfocus="WdatePicker({isShowWeek:false,skin:'whyGreen',dateFmt:'yyyy-MM-dd'})" style="width:80px"/>
						</td>
					   <TD class="left">统计截止时间：</td>
					    <td>
					     <INPUT id="yybusinessQueryCustom.endDate" 
							name="yybusinessQueryCustom.endDate"
							 onfocus="WdatePicker({isShowWeek:false,skin:'whyGreen',dateFmt:'yyyy-MM-dd'})" style="width:80px"/>
						<a id="btn" href="#" onclick="query()" class="easyui-linkbutton" iconCls='icon-search'>统计</a>
						
						 </TD>
					</tr>
				</TBODY>
			</TABLE>
	   
		<TABLE border=0 cellSpacing=0 cellPadding=0 width="99%" align=center>
			<TBODY>
				<TR>
					<TD>
						<table id="yycgdmxlist"></table>
					</TD>
				</TR>
			</TBODY>
		</TABLE>
		 </form>
	 <form id="businesslist" name="businesslist" method="post" action="${baseurl }/analyze/exportsubmit.action">
	 
	 
	 </form>
</BODY>
</HTML>

